package com.ruoyi.hr.mapper;


import com.ruoyi.hr.domain.Authority;
import com.ruoyi.hr.domain.DepartmentsRegister;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface DepartAdminMapper {

    public List<DepartmentsRegister> getDepartmentsRegister(@Param("PageNum") int PageNum, @Param("PageSize") int PageSize, @Param("departmentsRegister") DepartmentsRegister departmentsRegister, @Param("authorities") List<Authority> authorities);

    public int insertDepartmentsRegister(DepartmentsRegister departmentsRegister);

    int findCount(@Param("departmentsRegister") DepartmentsRegister departmentsRegister, @Param("authorities") List<Authority> authorities);

    List<Map<String, Object>> findDepList(@Param("map") Map map, @Param("authority") Authority authority);
    Map<String,Object> findDepAdd(String id);
    List<Map<String,Object>> findDepByCompId(String compId);
    int editDepAdd(Map map);
    int deleteDepAdd(String id);
    String findNameById(String id);

    List<Map<String,Object>> findEditDep(@Param("map") Map map,@Param("authority") Authority authority);
    String executeProcedure(@Param("sql") String sql);
    int editDepInvalid(Map map);

    List<Map<String,Object>> findDataHistory(@Param("map") Map map,@Param("authority") Authority authority);


}
